package com.alibaba.algo.exception;

import lombok.Getter;

/**
 * @author Fan.tianpeng
 * @date 2021/4/26 15:07
 */
@Getter
public enum SysEmployeeErrorCode {

    EMPLOYEE_CODE_REPEAT(20300, "此工号已存在"),
    EMPLOYEE_ORG_LIST_IS_EMPTY(20301, "员工所属组织或岗位为空"),
    END_DATE_IS_BEFORE_START(20302, "有效截止时间在开始时间之前"),
    EMPLOYEE_PHONE_REPEAT(20303, "此联系电话已被占用"),
    EMPLOYEE_EMAIL_REPEAT(20304, "此邮箱已被占用"),
    EMPLOYEE_CODE_IS_NOT_EXIST(20305, "此工号不存在"),
    EMPLOYEE_PRIMARY_ORG_REPEAT(20306, "一个员工只能归属于一个主部门"),
    ;

    private Integer code;

    private String message;

    SysEmployeeErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
